<?php

echo '<pre>';
$email = array (
  0 => 'hello1@gmail.com',
  1 => '" hello2@gmail.com "',
  11 => 'hello2@gmail.com',
  2 => 'hello3@gmail.com',
  22 => '',
  3 => 'hello4@gmail.com',
  4 => '" hello5@gmail.com "',
  44 => '0',
  5 => 'hello6@gmail.com',
  5 => false,
  66 => 'hello7@gmail.com',
  6 => null,
  666 => 'hello7@gmail.com',
);

$freshArrayUpper =  array_map('strtoupper',$email);

//var_export($freshArrayUpper);exit;

$freshArrayUpper1 =  array_map('removeQuotes',$email);
$freshArrayUpper1 =  array_values(array_filter(array_unique($freshArrayUpper1)));

var_export($freshArrayUpper1);

function removeQuotes  ($email){
  return trim($email, ' "');
}
